package com.chuangxiang.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("biz_task")
public class Task {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    private Long companyId;
    private String title;
    private String description;
    private String category;
    private BigDecimal price;
    private String location;
    private LocalDateTime deadline;
    private Integer requiredPeople;
    
    private Integer status; // 0: 草稿 1: 发布中 2: 进行中 3: 已完成 4: 已取消
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
}